import sys
from label import MyLabel
sys.path.append("/home/marcus/tutorials_ws/src/rovrqt/resource")
from rov_console import Ui_Form
from PyQt5 import QtCore, QtGui, QtWidgets

class UI(Ui_Form):
    def __init__(self):
        super().__init__()
        self.lb_compassnum = MyLabel(self.Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lb_compassnum.sizePolicy().hasHeightForWidth())
        self.lb_compassnum.setSizePolicy(sizePolicy)
        self.lb_compassnum.setMinimumSize(QtCore.QSize(180, 180))
        self.lb_compassnum.setAlignment(QtCore.Qt.AlignCenter)
        self.lb_compassnum.setObjectName("lb_compassnum")
        self.gridLayout.addWidget(self.lb_compassnum, 8, 1, 1, 1)

